atftp: add patch to fix build warning
authorFlorian Eckert <[email protected]>
Tue, 2 Sep 2025 12:11:29 +0000 (14:11 +0200)
committerFlorian Eckert <[email protected]>
Mon, 8 Sep 2025 07:20:43 +0000 (09:20 +0200)
commit62dfcf026f923b23366854bd4724c8ff8fbb3d04
tree24e75b6c0f36692786f19f8cbac1e1dc24c35cf5
parenta75e0a6db93b143d00df82581216d5901d13fc0e
atftp: add patch to fix build warning

This patch fixes the following compilation build warning:

logger.c:117:47: warning: format '%li' expects argument of type 'long int', but argument 7 has type
  117 |                fprintf(log_fp, "%s %s %s[%d.%li]: %s\n", time_buf, hostname,
      |                                             ~~^
      |                                               |
      |                                               long int
  118 |                        log_ident, getpid(), pthread_self(), message);
      |                                             ~~~~~~~~~~~~~~
      |                                             |
      |                                             pthread_t {aka struct __pthread *}
logger.c:124:47: warning: format '%li' expects argument of type 'long int', but argument 7 has type
  124 |                fprintf(stderr, "%s %s %s[%d.%li]: %s\n", time_buf, hostname,
      |                                             ~~^
      |                                               |
      |                                               long int
  125 |                        log_ident, getpid(), pthread_self(), message);
      |                                             ~~~~~~~~~~~~~~
      |                                             |
      |                                             pthread_t {aka struct __pthread *}

I have also submitted the change to the upstream project:
https://github.com/madmartin/atftp/pull/2

Signed-off-by: Florian Eckert <[email protected]>
net/atftp/patches/0002-Fix-pthread_t-format-warning-for-fprintf.patch [new file with mode: 0644]